Method for processing a light field image delivering a super-rays representation of a light field image

ABSTRACT

The present disclosure concerns a method for processing a light field image comprising a set of image views. The method is remarkable in that it comprises:selecting (101) a set of pixels, named centroids, within a given image view in said light field image, each centroid being associated with a unique label and a unique light ray;de-projecting said centroids, that delivers a set of points in a 3D space;re-projecting said points of said set of points in a 3D space in at least one other image view in said light field image, which is different from said reference view, that delivers a set of re-projected centroids; anddetermining (102), for each pixel, being associated with a light ray, within a neighborhood of a re-projected centroid, a label related to one of the centroids, said determining relying on a proximity criterion in term of color between pixels and centroids, and a proximity criterion in term of spatial distances between pixels and re-projected centroids; andupdating (103), for a given centroid, a color value associated with said given centroid, and spatial coordinates of said given centroid within said given image view, wherein said updating comprises:de-projecting pixels in said at least one other image view that are associated with a same label of said given centroid, delivering a set of obtained points; andre-projecting said obtained points into said given image view, delivering a set of projected points; andaveraging both color values associated with said projected points and spatial coordinates associated with said projected points for defining updated information related to said given centroid.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a continuation of U.S. application Ser. No. 16/466,025 filed on Jun. 1, 2019, which is incorporated herein by reference in its entirety and which is a national stage application under 35 U.S.C. § 371 of International Application No. PCT/EP2017/081045, titled “A METHOD FOR PROCESSING A LIGHT FIELD IMAGE DELIVERING A SUPER-RAYS REPRESENTATION OF A LIGHT FIELD IMAGE,” filed on Nov. 30, 2017, which claims under 35 U.S.C. § 119(b) the benefit of European Patent Application No. EP 16306591.5 titled “SUPER-RAYS FOR EFFICIENT LIGHT FIELD PROCESSING” and filed Dec. 1, 2016.

TECHNICAL FIELD

The disclosure relates to a technique for processing a light field image. More precisely, it concerns a technique for representing a light field image in order to ease the editing of light field image (for removing or adding elements in a scene associated with a light field image).

BACKGROUND

This section is intended to introduce the reader to various aspects of art, which may be related to various aspects of the present invention that are described and/or claimed below. This discussion is believed to be helpful in providing the reader with background information to facilitate a better understanding of the various aspects of the present invention. Accordingly, it should be understood that these statements are to be read in this light, and not as admissions of prior art.

Over the past few years, light field capturing devices have gained in popularity, both at the research and the industrial level. These devices can be broadly classified into the following categories. Plenoptic cameras use an array of microlenses placed in front of the sensor of a classical camera in order to capture light fields (see for example the document entitled “Light field photography with a hand-held plenoptic camera” by R. ng et al. in Computer Science Technical Report, vol. 2, no. 11, pp. 1-11, 2005, leading to trade spatial resolution for angular resolution. Although this trade-off can be controlled (see for example the document entitled “The focused plenoptic camera” by A. Lumsdaine and T. Georgiev, in ICCP, IEEE, 2009, pp. 1-8), the captured light field is always angularly dense (the disparity is of the order of the pixel).

Plenoptic cameras typically target consumer photography via their refocusing feature (e.g. Lytro Illum1), but also the industrial market thanks to the capabilities they offer for passive, accurate, monocular depth estimation (e.g. Raytrix2). Light fields can also be captured by camera arrays (see for example the document entitled “A self-reconfigurable camera array” by C. Zhang and T. Chen, in SIGGRAPH Sketches. ACM, 2004, p. 151, and the document entitled “High-speed videography using a dense camera array” by B. Wilburn et al., in CVPR, vol. 2. IEEE, 2004, pp. II-294). While being significantly more expensive and harder to use, hence dedicated to professionals, they offer the best spatial resolution (but low angular resolution) and a much larger baseline, making them suitable for applications requiring long range depth estimation, change of viewpoint and view synthesis, such as AR content capture (e.g. Lytro Immerge) or movie post production (e.g. Light-field Technology at Fraunhofer as presented in the document “Picam: An ultra-thin high performance monolithic camera array” by K. Venkataraman et al., in ACM Transactions on Graphics (TOG), vol. 32, no. 6, p. 166, 2013). A third category of acquisition devices is the camera gantry (e.g. the Stanford Lego Gantry), where a camera is moved along a plane and shots are taken at regular intervals. These devices are easy to use and implement, and can in theory provide high spatial and angular resolution. However, this type of device is limited to the capture of static light fields. Finally, recent and emerging smart phones are equipped either with several cameras (e.g. Iphone 7, Amazon Fire Phone), or with a single specialized sensor (e.g Pelican Imaging, ProFUSION-25C, or with a Wafer-level-optics camera array (see for example in the document entitled “Fast realistic refocusing for sparse light fields” by C.-T. Huang et al., in 2015 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), IEEE, 2015, pp. 1176-1180)) which could, to some extent, capture light fields, not as angularly dense as plenoptic cameras. Because they need to be compact, they also have a much smaller baseline and resolution than camera arrays.

The volume of data inherent to light fields, for all capturing devices, is a real issue for user interaction that requires near real-time processing, potentially on devices having limited computational power. This becomes even more critical for light field videos. A second issue is the ease of use. While users are familiar with 2D image editing, light field editing boils down to edit a 3D capture embedded into a 4D signal.

Hence, there is a need to enable user interaction with the whole light field while entering inputs on one view only. Indeed, so far, most of light field research has focused on typical light field applications: refocusing, depth estimation and super-resolution. The light field editing has only been recently addressed with methods targeting either automatic propagation of user inputs from one view to the others (see for example the document entitled “Efficient propagation of light field edits” by A. Jarabo et al., in proceedings of the SIACG, 2011), or object segmentation.

Indeed, state of the art light field editing methods either only deal with densely sampled light fields or use a dense depth estimation to perform user-guided segmentation (see for example the document entitled “Globally consistent multilabel assignment on the ray space of 4d light fields” by S. Wanner, in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2013, pp. 1011-1018, or the document entitled “4d light-field segmentation with spatial and angular consistencies” by H. Mihara et al., in Proceedings of IEEE International Conference on Computational Photography (ICCP), 2016, or the document entitled “Light field segmentation using a ray-based graph structure” by M. Hog et al., in European Conference on Computer Vision, Springer, 2016, pp. 35-50) or to propagate user inputs (see for example the document entitled “Plenoptic image editing” by S. M. Seitz and K. N. Kutulakos, published in the International Journal of Computer Vision, vol. 48, no. 2, pp. 115-129, 2002). Despite the latest advances in light field depth estimation (such as in the document entitled “Robust light field depth estimation for noisy scene with occlusion” by W. Williem and I. Kyu Park, in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2016, pp. 4396-4404 or in the document entitled “Occlusion-aware depth estimation using light-field cameras” by T.-C. Wang et al., published in Proceedings of the IEEE International Conference on Computer Vision, 2015, pp. 3487-3495), these methods use computationally expensive regularization to obtain satisfactory depth maps.

Hence, there is a need to provide an alternative to such approach, that uses less operations compared to the mentioned solutions.

SUMMARY OF THE DISCLOSURE

References in the specification to “one embodiment”, “an embodiment”, “an example embodiment”, indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.

In one embodiment of the disclosure, it is proposed a method for processing a light field image comprising a set of image views, the method being characterized in that it comprises:

-   -   selecting a set of pixels, named centroids, within a given image         view in said light field image, each centroid being associated         with a unique label and a unique light ray;     -   de-projecting said centroids, that delivers a set of points in a         3D space;     -   re-projecting said points of said set of points in a 3D space in         at least one other image view in said light field image, which         is different from said reference view, that delivers a set of         re-projected centroids; and     -   determining, for each pixel, being associated with a light ray,         within a neighborhood of a re-projected centroid, a label         related to one of the centroids, said determining relying on a         proximity criterion in term of color between pixels and         centroids, and a proximity criterion in term of spatial         distances between pixels and re-projected centroids; and     -   updating, for a given centroid, a color value associated with         said given centroid, and spatial coordinates of said given         centroid within said given image view, wherein said updating         comprises:     -   de-projecting pixels in said at least one other image view that         are associated with a same label of said given centroid,         delivering a set of obtained points; and     -   re-projecting said obtained points into said given image view,         delivering a set of projected points; and     -   averaging both color values associated with said projected         points and spatial coordinates associated with said projected         points for defining updated information related to said given         centroid.

In a preferred embodiment, the method for processing is remarkable in that said de-projecting and re-projecting are done according to intrinsic and extrinsic calibration parameters.

In a preferred embodiment, the method for processing is remarkable in that said updating is done for all of the centroids.

In a preferred embodiment, the method for processing is remarkable in that said given image view is a central image view in said set of image views.

In a preferred embodiment, the method for processing is remarkable in that said determining said label is done according to a minimization process that comprises the determination of

${{A(r)} = {\underset{c}{\arg\min}\left\{ {{\Delta_{Lab}\left( {r,r_{c}} \right)} + {m \cdot {\Delta_{xy}\left( {r,r_{c}^{\prime}} \right)}}} \right\}}},$

wherein c is a label associated to a centroid, r_(c) corresponds to a centroid ray in said given image view having for coordinates (s_(c), t_(c),x_(c), y_(c)) and associated with a depth d_(c), r′_(c) corresponds to a projection of said centroid ray r_(c) in said at least one another image view, having for coordinates (s′, t′, P_(s′,t′) ^(d) ^(c) (x_(c),y_(c))), and wherein r corresponds to said light ray associated with a point, having for coordinates (s′, t′, x, y), and where Δ_(Lab)(r, r_(c))=∥Lab_(r)−Lab_(r) _(c) ∥², and Δ_(xy)(r, r′_(c))=∥(x, y)−P_(s′,t′) ^(d) ^(c) (x_(c), y_(c))∥², wherein Lab_(r) _(c) corresponds to a color value of said centroid ray r_(c), Lab_(r) corresponds to a color value of said light ray r, and m is a weighting parameter.

In a preferred embodiment, the method for processing is remarkable in that said at least two reference images views are used, and said at least two reference image views are far from each other's from an angular point of view.

In a preferred embodiment, the method for processing is remarkable in that said light field image has been acquired by a cameras array.

In a preferred embodiment, the method for processing is remarkable in that said light field image has been acquired by a plenoptic camera.

According to an exemplary implementation, the different steps of the previous mentioned methods are implemented by a computer software program or programs, this software program comprising software instructions designed to be executed by a data processor of a relay module according to the disclosure and being designed to control the execution of the different steps of this method.

Consequently, an aspect of the disclosure also concerns a program liable to be executed by a computer or by a data processor, this program comprising instructions to command the execution of the steps of a method as mentioned here above.

This program can use any programming language whatsoever and be in the form of a source code, object code or code that is intermediate between source code and object code, such as in a partially compiled form or in any other desirable form.

The disclosure also concerns an information medium readable by a data processor and comprising instructions of a program as mentioned here above.

The information medium can be any entity or device capable of storing the program. For example, the medium can comprise a storage means such as a ROM (which stands for “Read Only Memory”), for example a CD-ROM (which stands for “Compact Disc-Read Only Memory”) or a microelectronic circuit ROM or again a magnetic recording means, for example a floppy disk or a hard disk drive.

Furthermore, the information medium may be a transmissible carrier such as an electrical or optical signal that can be conveyed through an electrical or optical cable, by radio or by other means. The program can be especially downloaded into an Internet-type network.

Alternately, the information medium can be an integrated circuit into which the program is incorporated, the circuit being adapted to executing or being used in the execution of the method in question.

According to one embodiment, an embodiment of the disclosure is implemented by means of modules comprising software and/or hardware components. From this viewpoint, the term “module” can correspond in this document both to a software component and to a hardware component or to a set of hardware and software components.

A software component corresponds to one or more computer programs, one or more sub-programs of a program, or more generally to any element of a program or a software program capable of implementing a function or a set of functions according to what is described here below for the module concerned. One such software component is executed by a data processor of a physical entity (terminal, server, etc.) and is capable of accessing the hardware resources of this physical entity (memories, recording media, communications buses, input/output electronic boards, user interfaces, etc.).

Similarly, a hardware component corresponds to any element of a hardware unit capable of implementing a function or a set of functions according to what is described here below for the module concerned. It may be a programmable hardware component or a component with an integrated circuit for the execution of software, for example an integrated circuit, a smart card, a memory card, an electronic board for executing firmware etc. In a variant, the hardware component comprises a processor that is an integrated circuit such as a central processing unit, and/or a microprocessor, and/or an Application-specific integrated circuit (ASIC), and/or an Application-specific instruction-set processor (ASIP), and/or a graphics processing unit (GPU), and/or a physics processing unit (PPU), and/or a digital signal processor (DSP), and/or an image processor, and/or a coprocessor, and/or a floating-point unit, and/or a network processor, and/or an audio processor, and/or a multi-core processor. Moreover, the hardware component can also comprise a baseband processor (comprising for example memory units, and a firmware) and/or radio electronic circuits (that can comprise antennas) which receive or transmit radio signals. In one embodiment, the hardware component is compliant with one or more standards such as ISO/IEC 18092 / ECMA-340, ISO/IEC 21481 / ECMA-352, GSMA, StoLPaN, ETSI /SCP (Smart Card Platform), GlobalPlatform (i.e. a secure element). In a variant, the hardware component is a Radio-frequency identification (RFID) tag. In one embodiment, a hardware component comprises circuits that enable Bluetooth communications, and/or Wi-fi communications, and/or Zigbee communications, and/or USB communications and/or Firewire communications and/or NFC (for Near Field) communications.

It should also be noted that a step of obtaining an element/value in the present document can be viewed either as a step of reading such element/value in a memory unit of an electronic device or a step of receiving such element/value from another electronic device via communication means.

In a variant, it is proposed an electronic device configured to process a light field image comprising a set of image views, the electronic device comprising at least one processor and at least one memory unit associated with said at least one processor, said at least one processor being characterized in that it is configured to:

-   -   select a set of pixels, named centroids, within a given image         view in said light field image, each centroid being associated         with a unique label and a unique light ray;     -   de-project said centroids, that delivers a set of points in a 3D         space;     -   re-project said points of said set of points in a 3D space in at         least one other image view in said light field image, which is         different from said reference view, that delivers a set of         re-projected centroids; and     -   determine, for each pixel, being associated with a light ray,         within a neighborhood of a re-projected centroid, a label         related to one of the centroids, said determining relying on a         proximity criterion in term of color between pixels and         centroids, and a proximity criterion in term of spatial         distances between pixels and re-projected centroids; and     -   update, for a given centroid, a color value associated with said         given centroid, and spatial coordinates of said given centroid         within said given image view, wherein said update comprises:     -   de-project pixels in said at least one other image view that are         associated with a same label of said given centroid, delivering         a set of obtained points; and     -   re-project said obtained points into said given image view,         delivering a set of projected points; and     -   determine an average of both color values associated with said         projected points and spatial coordinates associated with said         projected points for defining updated information related to         said given centroid.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects of the invention will become more apparent by the following detailed description of exemplary embodiments thereof with reference to the attached drawings in which:

FIG. 1 presents a flowchart corresponding to the main steps that are executed for determining a super-rays representation of a light field image according to one embodiment of the disclosure;

FIG. 2 presents the flowchart of FIG. 1 as an algorithm;

FIG. 3 presents an example of angular patches in Ω for a light field image comprising 3×3 views;

FIG. 4 presents in a schematic way the assignment step mentioned in FIGS. 1 and 2;

FIG. 5 presents in a schematic way the update step mentioned in FIGS. 1 and 2;

FIG. 6 presents an example of interpolation according to one embodiment of the disclosure when super-pixels representation is used for correcting angular aliasing;

FIG. 7(a) presents a light field image corresponding to a set of 9 images;

FIG. 7(b) presents the image view which is the upper-left image view in the set of images views presented in FIG. 3(a);

FIG. 7(c) presents a super-rays representation of the image view presented in FIG. 7(b), when the process of FIG. 1 or 2 is applied on the light field image of the FIG. 7(a);

FIG. 8 presents an example of a device that can execute a process according to one embodiment of the disclosure.

DETAILED DESCRIPTION

In one embodiment of the disclosure, it is proposed a technique for unsupervised light field over-segmentation which is in addition angular sampling agnostic and that relies less on depth estimation. The present approach is motivated by the observation that, for most editing applications, it might be more important to have accurate object boundaries, even with coarse depth information, than having a refined depth map. It can be shown that, a dense and accurate (in terms of disparity values) depth estimation is not needed for some typical light field applications.

The present document defines the concept of super-ray which is the counterpart of super-pixels (see document entitled “Learning a classification model for segmentation”, by X. Ren and J. Malik, in ICCV. IEEE, 2003, pp. 10-17) for light fields. The major difference with conventional super-pixels and super-voxels is that super-rays group perceptually similar and corresponding pixels across several views. In other words, super-rays are groups of rays of similar color coming from the same scene area. In the present document, it is proposed the first light field oversegmentation algorithm. It is derived from the SLIC technique (corresponding to the acronym of “Simple Linear Iterative Clustering”, described in document entitled “Slic superpixels compared to state-of-the-art superpixel methods” by R. Achanta et al., in IEEE transactions on pattern analysis and machine intelligence, vol. 34, no. 11, pp. 2274-2282, 2012), which is super-pixel generation method with good properties in terms of accuracy over complexity and parallelism. Indeed, SLIC super-pixels rely on a reformulation of Loyd's algorithm for the k-means problem with two specific features. First, the distance metric is a weighted sum of the CIELab color distance and the Euclidean pixel distance. Second a search window around the centroid is used to reduce the complexity of the algorithm. This approach has been extended in document entitled “Structure-sensitive superpixels via geodesic distance” by P. Wang et al., in International journal of computer vision, vol. 103, no. 1, pp. 1-21, 2013, to take into account a geodesic distance between pixels. Color and spatial information are integrated along the shortest path between two pixels in order to guaranty compactness, color consistency and connectivity.

At last, a new metric is also introduced in order to evaluate an important feature of super-rays: the view-consistency of the oversegmentation.

Let r be a light ray of the light field image noted LF, and (s, t, x, y) its coordinates using the two plane parametrization (described for example in the document entitled “The Lumigraph” by S. J. Gortler et al., in Proceedings of the 23rd annual conference on Computer graphics and interactive techniques. ACM, 1996, pp. 43-54), where (s, t) and (x, y) are the angular (view) and spatial (pixel) coordinates respectively. Besides, each light ray has an associated CIELab color value Lab_(r). In the present document, we note (x′, y′):=P_(s′,t′) ^(d)(x, y)∈

² the spatial pixel position in view (s′, t′) imaging the same scene point, at a distance d, as (x, y) in view (s, t). This is (x, y) and P_(s′,t′) ^(d)(x, y) are corresponding points imaging the same scene point in different views. In particular, in the case of a uniformly sampled light field we have

P _(s′,t′) ^(d)(x, y)=(d(s−s′)+x,d(t−t′)+y)   (1)

However, if the light field has been acquired with a camera array, P should take into account the extrinsic and intrinsic matrices of each camera, and allow us to estimate the pixel correspondences in this particular setting. Using this notation, r˜r′ are corresponding rays imaging the same scene point, where r′:=(s′, t′, P_(s′,t′) ^(d)(x, y)).

Now, given a light field, our goal is to group in the so-called super-rays, all perceptually similar rays corresponding to the same scene area. Formally, we aim to compute the mapping A: LF⊂

⁴→

, such that each light ray r of the light field image is assigned with a super-ray label c. We define SR_(c) the set of rays r such that A(r)=c. Each super-ray SR_(c) is characterized by a centroid ray r_(c). By definition, the angular coordinates of r_(c) correspond to the fixed reference view (s_(c), t_(c)). Besides, each centroid ray has a depth d_(c) associated to it.

FIG. 1 presents a flowchart corresponding to the main steps that are executed for determining a super-rays representation for a given light field image (being a set of image views).

The purpose of processing described in FIG. 1 is to determine a super-rays representation of the image views associated with the light field image.

In a step referenced 101, an electronic device performs an initialization step.

First of all, the spatial positions (x_(c), y_(c)) of the centroid rays are initialized on a regular grid of step S in a reference view.

The corresponding CIELab color values on such positions are the initial color values of the centroid rays Lab_(r) _(a) . Then, a depth d_(c) is estimated for each centroid ray r_(c). As this step is important for the rest of the algorithm the depth estimation needs to be robust. Thus, inspired by the works on light field depth estimation described in the document entitled “Occlusion-aware depth estimation using light-field cameras” by T.-C. Wang et al., in Proceedings of the IEEE International Conference on Computer Vision, 2015, pp. 3487-3495, we consider a multi-baseline block-matching strategy with angular patches in order to be more robust to occlusions and fattening errors. Let Ω be the set of angular patches where each patch o∈Ω is defined such that o(s, t) is 1 f a ray is visible on the view (s, t), and 0 otherwise. Each angular patch can be seen as a visibility mask. In practice, we define Ω as predefined set of angular patches, one patch that corresponds to the full view visibility and eight patches corresponding to different half view visibilities (top-bottom, right-left and diagonals). See an example for a 3×3 light field image in FIG. 3.

Indeed, the FIG. 3 presents an example of angular patches in Ω for a light field image comprising 3×3 views. The angular patches are equal to 1 at the position of the reference view (s_(c), t_(c)). White positions correspond to visible rays, so its value is equal to 1, and grey position (different from the reference view) are equal to 0. The leftmost patch assumes the ray is visible in all views. Other patches correspond to partial visibility.

Hence, the depth for the centroid c is estimated by minimizing the color distance in the RGB color space using the different angular patches

d _(c)=argmin_(d){min_(o∈Ω)Σ_(s′,t′) o(s′,t′)Δ_(RGB) ^(B)(r _(c) ,r′ _(c))}  (2),

where r′_(c)=(s′,t′,P_(s′,t′) ^(d)(x_(c), y_(c))) and Δ_(RGB) ^(B)(r_(c), r′_(c))=Σ_((i,j)∈[−B,B])(RGB_(r) _(c) (i,j)−RGB_(r′) _(c) (i,j))², is the patch color distance between the patch in the reference view (s_(c), t_(c)) and the patch in (s′, t′)≠(s_(c), t_(c)). In particular, RGB_(r) _(c) (i,j) is the RGB-color value of the ray (s_(c), t_(c), x_(c)+i, y_(c)+j). In the present document, we fix B=3, and we consider 9 angular patches (its size being equal to the number of views in the light field). Since the depth is estimated for a few number of points (the centroids), this choice is acceptable for low complexity applications.

Then, in a step referenced 102, the electronic device performs an assignment step. More precisely, at each iteration, the electronic device assigns a super-ray label to each light ray r(s, t, x, y) of the light field image. First, the depth estimation in the previous step is used to compute the corresponding rays of r_(c). Formally, we compute r′_(c)=(s′, t′, P_(s′,t′) ^(d) ^(c) (x_(c), y_(c))) such that r_(c)˜r′_(c). Then, each ray in a neighbourhood N_(S)(r′_(c)) of size S around r′_(c) is assigned to the super-ray SR_(c) if it minimizes the color and spatial distances:

$\begin{matrix} {{A(r)} = {\underset{c}{\arg\min}\left\{ {{\Delta_{Lab}\left( {r,r_{c}} \right)} + {m \cdot {\Delta_{xy}\left( {r,r_{c}^{\prime}} \right)}}} \right\}}} & \left( {{equation}\mspace{14mu}(2)} \right) \end{matrix}$

where Δ_(Lab)(r, r_(c))=∥Lab_(r)−Lab_(r) _(c) ∥², and Δ_(xy)(r, r′_(c))=∥(x, y)−P_(s′,t′) ^(d) ^(c) (x_(c), y_(c))∥², and m is the parameter weighting the color and spatial distance. A visual explanation can be found in FIG. 4. Note that, when r belongs to the reference view, r_(c)=r′_(c) in the equation (2), and the assignment step can be viewed as an equivalent to the SLIC assignment step. However, the approach in the present document allows to coherently assign a label to all rays in the other light field views. It should be noted that in one embodiment of the disclosure, for the assignment step, we presume (as in document entitled “Light field segmentation using a ray-based graph structure” by M. Hog et al., in European Conference on Computer Vision. Springer, 2016, pp. 35-50) that two light rays from the same view and close spatial coordinates are likely to image two close scene points. Therefore, a ray that is similar in appearance and close to a centroid light ray or close to one of its corresponding rays is considered likely to belong to the same scene object. Therefore, it should belong to the super-ray corresponding to this centroid.

Then, in a step referenced 103, the electronic device performs an update step. More precisely, the spatial coordinates of the ray centroid and its corresponding Lab values are updated. In particular, the new color value of r_(c) is the average of the color values of all rays in SR_(c) and the new spatial coordinates are the average coordinates of all light rays, r=(s, t, x, y) in SR_(c) projected on the reference view using the depth d_(c):

$\begin{matrix} {{{Lab}_{r_{c}} = {\frac{1}{{SR}_{c}}{\sum_{r \in {SR}_{\; c}}{Lab}_{r}}}},} & \left( {{equation}\mspace{14mu} 3} \right) \\ {\left( {x_{c},y_{c}} \right) = {\frac{1}{{SR}_{c}}{\sum_{r \in {SR}_{\; c}}{{P_{s_{c},t_{c}}^{d_{c}}\left( {x,y} \right)}.}}}} & \left( {{equation}\mspace{14mu} 4} \right) \end{matrix}$

Note that the centroid rays are defined on a reference view so its angular coordinates (s_(c), t_(c)) are not changed in our algorithm. On the contrary, the centroid spatial coordinates (x_(c), y_(c)) are first initialized on a regular grid in

², and then updated as in equation (4), which produces new coordinates values in

². So, r_(c) is defined as a virtual light ray which is not necessarily one of the light rays captured in the light field. We summarize the update step in FIG. 5. When updating the spatial coordinates we assume that rays inside the same super-rays are likely to have similar depth, so the process associated with equation (4) is a good approximation with respect to the centroid position we would obtain using the true depth per ray. Furthermore, the process associated with equation (4) ensures that two corresponding rays, on two different views, have nearly the same spatial distance in the equation (2) from a given centroid ray. This is not necessarily the case when seeding the centroids independently on all the view.

In addition, in a facultative step referenced 104, the electronic device can perform a cleanup step. Indeed, similarly to the SLIC method, the execution of steps 101 to 103 does not enforce super-ray spatial connectivity. Therefore, after the grouping of rays around centroids, some rays may remain isolated, especially when the spatial term in the equation

${A(r)} = {\underset{c}{\arg\min}\left\{ {{\Delta_{Lab}\left( {r,r_{c}} \right)} + {m \cdot {\Delta_{xy}\left( {r,r_{c}^{\prime}} \right)}}} \right\}}$

has a low weight. Hence, the electronic device can perform in step 104 a simple post-processing method that comprises the re-labeling of super-ray disconnected components (with a number of pixels below a value of ¼S²) with the closest super-ray label.

The main interest of super-rays is to give a compact Multiview representation of the scene, without relying on dense depth estimation. This representation can be used directly or with depth information associated to each centroid ray, as we show in the next section. One main challenge of super-rays is to be as computationally efficient as super-pixels. While it would be possible to integrate some photo-consistency prior in the assignment step, this would come with a huge computational cost, since the photo-consistency would either need to be pre-computed for each ray and for each candidate disparity value, or to be computed at each iteration. Moreover, the K-means strategy applied here relies on some strong assumptions on the data (e.g spherical distribution variance, uniform cluster size etc.), that get easily violated when dealing with other quantities such as color and spatial information.

Instead, the approach described in the present document only uses the disparity of centroid rays, and let the spatial distance of the re-projected rays do the grouping. In that sense, the geometric information given by the light field is not fully exploited, but on the other hand, as long as two objects have sufficiently different colors, our approach is still sufficient to yield a good segmentation.

One limitation of this method is that it relies heavily on the centroid depth initialization. Even if we proposed a method to robustify this initial search, errors may have negative consequences on the output segmentation, rays being assigned to the wrong super-ray. Precisely, this is a problem when the disparity error is greater than the super-ray size, as the centroid would potentially fall outside an object during projection. This being said, light-field depth estimation is an active research topic and our depth estimator could be replaced in the future with another sparse and accurate method.

Another limitation is related to occlusions. Indeed, because the projected centroids coordinates are not placed regularly, but rather warped according to the scene depth, zones with large occlusion have few, or no nearby centroids projections. If an occlusion is bigger than the search window of the super-ray, rays of a view might not be assigned to any super-rays.

FIG. 2 presents the flowchart of FIG. 1 as an algorithm.

Such algorithm can be represented by instructions that are executed by a processor in an electronic device. It has a physical effect in the sense that it modifies the data (corresponding to the physical representation of the light field image) stored in a memory unit in the electronic device.

FIG. 4 presents in a schematic way the assignment step mentioned in FIGS. 1 and 2. Indeed, a ray r, that is inside a search window of the super-ray SR_(c), defined according to the projection of its centroid r_(c), P_(s′,t′) ^(d) ^(c) (x_(c), y_(c)), in the view where r lies. The color and spatial distance in equation (2) is denoted Δ in FIG. 4.

FIG. 5 presents in a schematic way the update step mentioned in FIGS. 1 and 2. Indeed, each ray of the super-ray SR_(c) is reprojected on the reference view using the depth of the super-ray. For example, the rays r_(i) and r_(j) are reprojected on the reference (s_(c), t_(c)). The projection are averaged, giving the new centroid ray position on the reference view (x_(c), y_(c)).

FIG. 6 presents an example of interpolation according to one embodiment of the disclosure. More precisely, it presents an example of interpolation by extrapolating only two views. The captured views are the views (s₀, t₀) and (s₁, t₁), and the virtual ones are the views (s_(i), t_(i)) and (s_(j), t_(j)). We seek to estimate the color value of the pixel at (x, y) when refocusing at depth d_(f) on the reference view (s₀, t₀), as the sum of colors of (x, y) reprojected in the two physical views P_(s) ₁ _(,t) _(t) ^(d) ^(f) (x, y) and P_(s) ₀ _(,t) ₀ ^(d) ^(f) (x,y), but also the two virtual views in between (s₀, t₀) and (s₁, t₁), with a non-integer index. The reprojected colors are obtained by seeking the co responding point in the nearest physical view, using the depth associated with the super-ray to which the ray (s, t, x, y) belongs.

FIG. 7(a) presents a light field image corresponding to a set of 9 images.

FIG. 7(b) presents the image view which is the upper-left image view in the set of images views presented in FIG. 7(a).

FIG. 7(c) presents a super-rays representation of the image view presented in FIG. 7(b), when the process of FIG. 1 or 2 is applied on the light field image of the FIG. 7(a).

It should be noted that some “area” associated with a super-rays seem to have more than one centroid (see for example on the lamp). However, the centroids presented in FIG. 7(c) corresponds to the superposition of all the centroids from all the image views of FIG. 7(a) (i.e. a kind of map of all the determined centroids from all the image views).

In the following, we propose two examples of editing applications that exploit the super-rays presented in this document. On the one hand, we present a fast light field segmentation method based on super-rays. On the other hand, we present a method for correcting angular aliasing for sparsely sampled light fields.

Real Time Interactive Segmentation

Light field segmentation has a high computational complexity and using super-rays is a good strategy for decreasing it, similarly to temporal super-pixels for video segmentation.

We use the same graph structure introduced in document “Light field segmentation using a ray-based graph structure” in which rays of the light field are packed in ray bundles in order to decrease the number of nodes of the graph since there is a node per ray bundle instead of a node per light ray. However, it requires a dense depth estimation per view to determine the ray bundles. On the contrary, our proposed strategy uses the super-rays and the centroid depth estimates to create the graph. This is, we build a graph

={V,ϵ} where each node V corresponds to one super-ray SR_(c), and we set an edge of ϵ between two nodes if the two super-rays share a common border in at least one view (adjacent super-rays). Then, we define the energy ϕ=Σ_(c) _(i) U(c_(i))+sΣ_(c) _(i) _(;c) _(j) _(∈N(c) _(i) ₎P(c_(i), c_(j)) (equation (5)), where s is the smoothness parameter, N the function that indicates if two super-rays are adjacent and U and P the unary and pairwise terms respectively. U uses the super-ray average color probability, defined from a Gaussian mixture learnt from the user input and P is defined as a summation of the view conventional pairwise relationship. In order to minimize the equation (5), the multi-label Graph-Cuts algorithm in document entitled “Fast approximate energy minimization via graph cuts” by Y. Boykov et al., in IEEE Transactions on pattern analysis and machine intelligence, vol. 23, no. 11, pp. 1222-1239, 2001, and document entitled “An experimental comparison of mincut/max-flow algorithms for energy minimization in vision” by Y. Boykov et al., in IEEE transactions on pattern analysis and machine intelligence, vol. 26, no. 9, pp. 1124-1137, 2004, is applied, using an available implementation. The main interest of using super-rays as a base for segmentation is the gain in running time. Here we spend 1 ms on the alpha expansion in the Graph-Cut step compared to 3s in document entitled “Light field segmentation using a ray-based graph structure”. This gain comes at the expense of loosing precision, but the obtained accuracy is sufficient for many real-time applications requiring a fast (rather than accurate) segmentation.

Correcting Angular Aliasing

One of the major new light field applications compared to conventional cameras is the post-capture image refocusing. In fact, light fields captured with Plenoptic type 1.0 cameras provide quite impressive refocusing results but angular aliasing appears when refocusing light fields from camera rigs or refocused plenoptic cameras. This is due to the poor angular sampling of such acquisition systems. Angular aliasing is particularly visible when the simple shift-and-add algorithm is used for refocusing, whereas other solutions such as the adaptive splatting (see document entitled “Refocusing plenoptic images using depth-adaptive splatting” by J. Fiss et al., in Computational Photography (ICCP), 2014 IEEE International Conference on. IEEE, 2014, pp. 1-9) or the rendering of novel views (see for example the document entitled “Learning-based view synthesis for light field cameras” by N. K. Kalantari et al., in ACM Transactions on Graphics (Proceedings of SIGGRAPH Asia 2016), vol. 35, no. 6, 2016) decrease the artifacts. However, most of the solutions are depth-based methods which makes them unsuitable for fast editing applications. Here we propose to refocus using our super-rays to avoid angular aliasing while maintaining a low complexity. We do not intend to render new views but our philosophy is similar in the sense that we use approximate intermediate views computed with our super-rays. Thus, refocusing is performed via shift-and-add using both original and approximate intermediate views that we call virtual views. With our notations, the shift-and-add method to compute the refocused image at depth d from the viewpoint (s_(c), t_(c)) is defined as

${\frac{1}{N^{2}}{\sum_{s,t}{{RGB}\left( {s,t,{P_{s,t}^{d}\left( {x,y} \right)}} \right)}}},$

where the original angular coordinates s, t=0, . . . , N−1 correspond to the original image views available in the light field image. Now, we define the virtual positions (u, v)∈

² as

${\left( {u,v} \right) = {\left( {s,t} \right) + {\frac{1}{\Delta_{d}}\left( {m,n} \right)}}},m,{n = {{1\mspace{11mu}\ldots\mspace{11mu}\Delta_{d}} - 1}}$

where the number of virtual views between two original views is Δ_(d)=└∥d_(c)−d∥┘, the integer part of the absolute value of the depth difference between the refocusing depth d and the centroid depth d_(c), c being the centroid label to which (s_(c), t_(c), x, y) belongs. Therefore, the corrected refocused image is defined as the sum of the original images and the virtual views contribution:

$\begin{matrix} {{I_{s_{c},t_{c}}^{\prime\; d}\left( {x,y} \right)} = {\frac{1}{\left( {N.\Delta_{d}} \right)^{2}}\left( {{\sum_{s,t}{{RGB}\left( {s,t,{P_{s,t}^{d}\left( {x,y} \right)}} \right)}} + {\sum_{u,v}{{RGB}\left( {u,v,{P_{u,v}^{d}\left( {x,y} \right)}} \right)}}} \right.}} & \left( {{equation}\mspace{14mu}(6)} \right) \end{matrix}$

Note that equation (6) requires to interpolate the virtual views, which can be quite memory and time consuming. However, in our strategy we do not explicitly compute them but we use the super-rays depth d_(c) to approximate ray colors in virtual views:

RGB(u, v, P _(u,v) ^(d)(x, y))≈RGB([u], [v], P _([u],[v]) ^(d) ^(c) (P _(u,v) ^(d)(x,y)))),

where ([u], [v]) is the closest original view.

Considering d_(c) as the depth of all rays of a super-ray is a coarse approximation but it has few or no consequences on the final result since we only approximate for the blurred, out of focus areas. However, the high frequencies on the blur due to the poor angular sampling are successfully removed. Moreover, using the approximate depth information is sufficient to prevent out of focus rays coming from the background to be mixed with occluding in-focus rays which may create artifacts.

FIG. 8 presents an example of an electronic device that can be used to perform one or several steps of methods disclosed in the present document.

Such electronic device referenced 600 comprises a computing unit (for example a CPU, for “Central Processing Unit”), referenced 601, and one or more memory units (for example a RAM (for “Random Access Memory”) block in which intermediate results can be stored temporarily during the execution of instructions a computer program, or a ROM block in which, among other things, computer programs are stored, or an EEPROM (“Electrically-Erasable Programmable Read-Only Memory”) block, or a flash block) referenced 602. Computer programs are made of instructions that can be executed by the computing unit. Such electronic device 600 can also comprise a dedicated unit, referenced 603, constituting an input-output interface to allow the device 600 to communicate with other electronic devices. In particular, this dedicated unit 603 can be connected with an antenna (in order to perform communication without contacts), or with serial ports (to carry communications “contact”). It should be noted that the arrows in FIG. 8 signify that the linked unit can exchange data through buses for example together.

In an alternative embodiment, some or all of the steps of the method previously described, can be implemented in hardware in a programmable FPGA (“Field Programmable Gate Array”) component or ASIC (“Application-Specific Integrated Circuit”) component.

In an alternative embodiment, some or all of the steps of the method previously described, can be executed on an electronic device comprising memory units and processing units as the one disclosed in the FIG. 8.

In one embodiment of the disclosure, the electronic device depicted in FIG. 8 can be comprised in a camera device that is configured to capture images (either conventional 2D images or a sampling of a light field). These images are stored on one or more memory units. Hence, these images can be viewed as bit stream data (i.e. a sequence of bits). Obviously, a bit stream can also be converted on byte stream and vice versa.

At last, it should be noted that the proposed technique is suitable to a GPU implementation. Therefore, the concept of super-rays is suitable to a real-time processing environment. 

What is claimed is:
 1. A method for processing a light field comprising a plurality of views of a 3D scene, the method comprising: selecting a first pixel in a first view of the plurality of views; generating a first super-ray for the first pixel comprising: de-projecting the first pixel to identify a corresponding first point in the 3D scene; re-projecting the corresponding first point in the 3D scene on a second view of the plurality of views to identify a corresponding first pixel in the second view, wherein the second view is different from the first view; identifying a first set of pixels having a similar color to the corresponding first pixel, wherein each pixel of the first set of pixels is within a first neighborhood of the corresponding first pixel; grouping the first set of pixels into the first super-ray.
 2. The method of claim 1, wherein the first super-ray identifies light rays from each of the plurality of image views, which light rays are similar in appearance and which originate from a first area in the 3D scene.
 3. The method of claim 1, wherein selecting the first pixel comprises selecting a point of a regular grid within the first view.
 4. The method of claim 1, further comprising: projecting all light rays associated with the first super-ray on the first view; identifying as a first centroid of the first neighborhood a spatial coordinate associated with an average spatial position of the spatial positions of the light rays associated with the first super-ray as projected on the first view.
 5. The method of claim 1, wherein the plurality of views comprises at least M views, wherein, for each Nth view of the plurality of views from a third view through an Mth view, where N and M are integers, the method further comprises: re-projecting the corresponding first point in the 3D scene to an Nth view of the plurality of views to identify a corresponding Nth pixel in the Nth view; identifying an Nth set of pixels having a similar color to the corresponding Nth pixel, wherein each pixel of the Nth set of pixels is within an Nth neighborhood of the corresponding Nth pixel; grouping the Nth set of pixels into the first super-ray.
 6. The method of claim 1, further comprising computing an average color for all pixels associated with the first super-ray and assigning the average color to the first super-ray in a super-ray representation of the light field.
 7. The method of claim 1, further comprising: selecting a second pixel in the first view of the plurality of views; generating a second super-ray for the second pixel comprising: de-projecting the second pixel to identify a corresponding second point in the 3D scene; re-projecting the corresponding second point in the 3D scene on a second view of the plurality of views to identify a corresponding second pixel in the second view, wherein the second view is different from the first view; identifying a second set of pixels having a similar color to the corresponding second pixel, wherein each pixel of the second set of pixels is within a second neighborhood of the corresponding second pixel; grouping the second set of pixels into the second super-ray; processing the light field by processing at least the first super-ray and the second super-ray.
 8. The method of claim 1, wherein the light field comprises L neighborhoods, the method further comprising generating L super-rays, one super-ray for each of the L neighborhoods.
 9. The method of claim 1, wherein a first light ray is associated with the first pixel, wherein the first light ray has a first depth, and wherein each ray of the first super-ray is re-projected on the first view at the first depth.
 10. An electronic device configured to process a light field image comprising a plurality of views of a 3D scene, the electronic device comprising at least one processor and at least one memory having stored instructions operative, when executed by the at least one processor, to cause the electronic device to: select a first pixel in a first view of the plurality of views; generate a first super-ray for the first pixel comprising: de-projecting the first pixel to identify a corresponding first point in the 3D scene; re-projecting the corresponding first point in the 3D scene on a second view of the plurality of views to identify a corresponding first pixel in the second view, wherein the second view is different from the first view; identifying a first set of pixels having a similar color to the corresponding first pixel, wherein each pixel of the first set of pixels is within a first neighborhood of the corresponding first pixel; group the first set of pixels into the first super-ray.
 11. The electronic device of claim 10, wherein the plurality of views comprises at least M views, wherein, for each Nth view of the plurality of views from a third view through an Mth view, where N and M are integers, wherein the instructions are further operative to cause the electronic device to: re-project the corresponding first point in the 3D scene to an Nth view of the plurality of views to identify a corresponding Nth pixel in the Nth view; identify an Nth set of pixels having a similar color to the corresponding Nth pixel, wherein each pixel of the Nth set of pixels is within an Nth neighborhood of the corresponding Nth pixel; group the Nth set of pixels into the first super-ray.
 12. The electronic device of claim 10, wherein the instructions are further operative to cause the electronic device to: select a second pixel in the first view of the plurality of views; generate a second super-ray for the second pixel comprising: de-projecting the second pixel to identify a corresponding second point in the 3D scene; re-projecting the corresponding second point in the 3D scene on a second view of the plurality of views to identify a corresponding second pixel in the second view, wherein the second view is different from the first view; identifying a second set of pixels having a similar color to the corresponding second pixel, wherein each pixel of the second set of pixels is within a second neighborhood of the corresponding second pixel; grouping the second set of pixels into the second super-ray; process the light field by processing at least the first super-ray and the second super-ray.
 13. A method for processing a light field comprising a plurality of views of a 3D scene, the method comprising: obtaining a super-ray representation for the light field, wherein the super-ray representation comprises a plurality of super-rays, wherein each super-ray groups pixels corresponding to a set of light rays having a similar color from each of the plurality of views, and wherein the set of light rays for each super-ray originates from one area of the 3D scene; processing the light field by processing the super-ray representation for the light field, wherein processing the light field comprises at least one of editing the light field, segmenting the light field, and refocusing the light field.
 14. The method of claim 13, wherein the plurality of views comprises at least M views,-wherein, further comprising: selecting a first pixel in a first view of the plurality of views; generating a first super-ray for the first pixel comprising de-projecting the first pixel to identify a corresponding first point in the 3D scene, and, for each Nth view of the plurality of views from a second view through an Mth view, where N and M are integers, the generating further comprises: re-projecting the corresponding first point in the 3D scene to an Nth view of the plurality of views to identify a corresponding Nth pixel in the Nth view; identifying an Nth set of pixels having a similar color to the corresponding Nth pixel, wherein each pixel of the Nth set of pixels is within an Nth neighborhood of the corresponding Nth pixel; grouping the Nth set of pixels into the first super-ray.
 15. The method of claim 14, further comprising: projecting all light rays associated with the first super-ray on the first view; identifying as a first centroid of the first neighborhood a spatial coordinate associated with an average spatial position of the spatial positions of the light rays associated with the first super-ray as projected on the first view.
 16. The method of claim 14, further comprising computing an average color for all pixels associated with the first super-ray and assigning the average color to the first super-ray in a super-ray representation of the light field.
 17. The method of claim 14, further comprising: selecting a second pixel in the first view of the plurality of views; generating a second super-ray for the first pixel comprising de-projecting the second pixel to identify a corresponding second point in the 3D scene, and, for each Nth view of the plurality of views from the second view through the Mth view, the generating further comprises: re-projecting the corresponding second point in the 3D scene to an Nth view of the plurality of views to identify a corresponding Nth pixel in the Nth view; identifying an Nth set of pixels having a similar color to the corresponding Nth pixel, wherein each pixel of the Nth set of pixels is within an Nth neighborhood of the corresponding Nth pixel; grouping the Nth set of pixels into the second super-ray; processing the light field by processing at least the first super-ray and the second super-ray.
 18. An electronic device configured to process a light field image comprising a plurality of views of a 3D scene, the electronic device comprising at least one processor and at least one memory having stored instructions operative, when executed by the at least one processor, to cause the electronic device to: obtain a super-ray representation for the light field, wherein the super-ray representation comprises a plurality of super-rays, wherein each super-ray groups pixels corresponding to a set of light rays having a similar color from each of the plurality of views, and wherein the set of light rays for each super-ray originates from one area of the 3D scene; process the light field by processing the super-ray representation for the light field, wherein processing the light field comprises at least one of editing the light field, segmenting the light field, and refocusing the light field.
 19. The electronic device of claim 18, wherein the plurality of views comprises at least M views, wherein the instructions are further operative to cause the electronic device to: select a first pixel in a first view of the plurality of views; generate a first super-ray for the first pixel comprising de-projecting the first pixel to identify a corresponding first point in the 3D scene, and, for each Nth view of the plurality of views from the second view through the Mth view, where N and M are integers, the generating further comprises: re-projecting the corresponding first point in the 3D scene to an Nth view of the plurality of views to identify a corresponding Nth pixel in the Nth view; identifying an Nth set of pixels having a similar color to the corresponding Nth pixel, wherein each pixel of the Nth set of pixels is within an Nth neighborhood of the corresponding Nth pixel; grouping the Nth set of pixels into the first super-ray.
 20. The electronic device of claim 19, wherein the instructions are further operative to cause the electronic device to: select a second pixel in the first view of the plurality of views; generate a second super-ray for the first pixel comprising de-projecting the second pixel to identify a corresponding second point in the 3D scene, and, for each Nth view of the plurality of views from the second view through the Mth view, where N and M are integers, the generating further comprises: re-projecting the corresponding second point in the 3D scene to an Nth view of the plurality of views to identify a corresponding Nth pixel in the Nth view; identifying an Nth set of pixels having a similar color to the corresponding Nth pixel, wherein each pixel of the Nth set of pixels is within an Nth neighborhood of the corresponding Nth pixel; grouping the Nth set of pixels into the second super-ray; process the light field by processing at least the first super-ray and the second super-ray. 